import React from 'react';
import {Button} from '@cscec/udp-ui';
import { getBaseCommonProps } from '../../base/util';
import type { IProps } from './interface';

/**
 * 按钮
 * @param param
 * @returns
 */
export default function (props: IProps) {
    const { child , outRef,size,useType } = props;
    const newProps = getBaseCommonProps(props);
    return <Button ref={outRef} size={size} type={useType}  {...newProps}>{child}</Button>;
}
